#include "comm.hpp"

int main()
{
    int fd = open(ipcPath.c_str(), O_WRONLY);
    if (fd < 0)
    {
        perror("open");
        exit(1);
    }

    string buffer;
    while (true)
    {
        cout<<"Please Enter Message Line :> ";
        getline(std::cin, buffer);
        write(fd, buffer.c_str(), buffer.size());
    }
    
    close(fd);
    return 0;
}